class CreateRequests < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
			t.string :name
			t.string :phone_home
			t.string :phone_city_code, :limit=>5
			t.string :currency_type, :limit=>2
			
			t.float :summa
			t.float :sum_income
			t.integer :work_stag_years
			t.integer :work_stag_month
			t.integer :podtv_type_id
			t.string :sex, :limit=>4
			
			t.boolean :is_ukraine, :default=>true
			
			t.string :mobile_code, :limit=>4
			t.string :mobile_number, :limit=>15
			t.string :has_items
			t.string :soz
			t.integer :period_year
			t.integer :period_month
			t.float :fpay
			t.string :purp
			t.string :family
			t.integer :izhd
			t.integer :childs
			
			t.string :phone
			t.string :email
			t.integer :type_id
			t.float		:profit
			t.integer :age
			t.integer :family_count
			t.integer :profit_type_id
      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end
